<div class="footer">
    <p>Copyright 2018 DreamPHP All Rights Reserved</p>
</div>

<script src="/static/index/js/jquery-3.3.1.min.js"></script>
<script src="/static/index/js/bootstrap.min.js"></script>
<script src="/static/lib/layer/layer.js"></script>
<script>
    $('#loginout').click(function () {
        $.ajax({
            url:"{:url('index/index/loginout')}",
            type:'post',
            dataType:'json',
            success:function (data) {
                if (data.code == 1) {
                    layer.msg(data.msg, {
                        icon:6,
                        time:2000
                    }, function () {
                        location.href = data.url;
                    });
                }else {
                    layer.open({
                        title:'退出失败',
                        content:data.msg,
                        icon:5,
                        skin:'layui-layer-lan',
                        anim:6
                    });
                }
            }
        });
        return false;
    });

    $('#post').click(function () {
        layer.open({
            title:'投稿失败',
            content:'投稿中心暂时关闭！',
            icon:2,
            skin:'layui-layer-lan'
        });
        return false;
    });
</script>